Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix Web Loading Bar (Again) #2553

Merged
merged 1 commit into from
May 29, 2024

Conversation

lemz1
Copy link
Contributor

@lemz1 lemz1 commented May 18, 2024

hi,
sorry for making another fix for the loading bar. I messed some stuff up.

  • I made an oopsie when doing setGraphicSize, which lead the loading bar to go back and forth when no callbacks have been finished. The comment in the code explains that part.
  • Set the width of the loading bar to 0 at the beginning so that the lerp doesn't start off wrong

I do have a question about the lerp though. Is there a particular reason why we are using FlxMath.lerp and using a hardcoded ratio instead of elapsed. Another thing i'd like to mention is that the loading bar doesn't reach the end when finishing all callbacks before switching to the next state because the lerp needs to take some time.

@ninjamuffin99
Copy link
Member

for the hardcoded value, i just eyeballed what I personally think looked nice!

I will put this PR into da queue for review!

@ninjamuffin99 ninjamuffin99 added this to the 0.4.0 milestone May 24, 2024
@lemz1 lemz1 changed the title Fix Web Loading Bar (Again) [BUGFIX] Fix Web Loading Bar (Again) May 25, 2024
@EliteMasterEric EliteMasterEric self-assigned this May 29, 2024
@EliteMasterEric EliteMasterEric merged commit 5e1f616 into FunkinCrew:develop May 29, 2024
@lemz1 lemz1 deleted the loadingbar-fix branch May 30, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants